package com.zzb.myshowme.presenter.impl;

import com.zzb.myshowme.MyApplication;
import com.zzb.myshowme.bean.UserInfo;
import com.zzb.myshowme.model.UserCenterModel;
import com.zzb.myshowme.model.impl.UserCenterModelImpl;
import com.zzb.myshowme.presenter.UserCenterPresenter;
import com.zzb.myshowme.utils.UserInfoUtils;
import com.zzb.myshowme.view.IView.UserCenterView;

/**
 * Created by Administrator on 2016/11/1.
 */
public class UserCenterPresenterImpl implements UserCenterPresenter{

    private UserCenterView mUserCenterView;
    private UserCenterModel mUserCenterModel;

    public UserCenterPresenterImpl(UserCenterView mUserCenterView){
        this.mUserCenterView = mUserCenterView;
        this.mUserCenterModel = new UserCenterModelImpl();
    }

    @Override
    public void initData(){
        //从本地加载数据
        UserInfo userinfo = UserInfoUtils.readLoginMember(MyApplication.getInstance());
        mUserCenterView.initData(userinfo);
//        mUserCenterModel.getUserInfo();//从网络获取数据
    }

}
